import request from '@/utils/request'

// 查询硬件检定日期更新列表
export function listHardwareCheckTimeUpdate(query) {
  return request({
    url: '/business/hardwareCheckTimeUpdate/list',
    method: 'get',
    params: query
  })
}

// 查询硬件检定日期更新详细
export function getHardwareCheckTimeUpdate(recordId) {
  return request({
    url: '/business/hardwareCheckTimeUpdate/' + recordId,
    method: 'get'
  })
}

// 新增硬件检定日期更新
export function addHardwareCheckTimeUpdate(data) {
  return request({
    url: '/business/hardwareCheckTimeUpdate',
    method: 'post',
    data: data
  })
}

// 修改硬件检定日期更新
export function updateHardwareCheckTimeUpdate(data) {
  return request({
    url: '/business/hardwareCheckTimeUpdate',
    method: 'put',
    data: data
  })
}

// 删除硬件检定日期更新
export function delHardwareCheckTimeUpdate(recordId) {
  return request({
    url: '/business/hardwareCheckTimeUpdate/' + recordId,
    method: 'delete'
  })
}

// 导出硬件检定日期更新
export function exportHardwareCheckTimeUpdate(query) {
  return request({
    url: '/business/hardwareCheckTimeUpdate/export',
    method: 'get',
    params: query
  })
}

// 硬件设备更新检定日期
export function updateHardwareCheckTime(data) {
  return request({
    url: '/business/hardwareCheckTimeUpdate/updateCheckTime',
    method: 'post',
    data: data
  })
}
